export const shareMixins = {
	data() {
		return {
			shareData: {
				title: '花瓣记账',
				path: '/pages/index/index',
				imageUrl: 'https://f.duoduoyxkj.com/hongapps/1043/img/cover.jpg',
				content: '',
				desc: ''
			},

		}
	},

	//#ifdef MP-WEIXIN
	onShareAppMessage() {
		return {
			title: this.shareData.title,
			path: this.shareData.path,
			imageUrl: this.shareData.imageUrl,
			content: this.shareData.content,
			desc: this.shareData.desc,
			success: res => {
				console.info(res)
			}
		}
	},
	onShareTimeline() {
		return {
			title: this.shareData.title,
			path: this.shareData.path,
			imageUrl: this.shareData.imageUrl,
			content: this.shareData.content,
			desc: this.shareData.desc,
			success: res => {
				console.info(res)
			}
		}
	},
	//#endif

	onLoad(option) {}
}